package CD.impl;

import CD.services.CompactDisc;
import Media.services.MediaPlayer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Lazy;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
//@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class SgtPeppers implements CompactDisc {

    private String title = "Sgt .Pepper's Lonely Hearts Club Band";
    private String artist = "The Beatles";

    private MediaPlayer mediaPlayer;


    @Override
    public void play() {
        System.out.println("Playing " + title + "by" + artist);
    }
}
